package com.example.dnfgamercommunitybackend.controller;

import com.example.dnfgamercommunitybackend.entity.Article;
import com.example.dnfgamercommunitybackend.service.RecommendArticleService;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
public class RecommendArticleController {
    @Resource
    private RecommendArticleService recommendArticleService;

    @PreAuthorize("hasAuthority('user:get_recommend_article')")
    @GetMapping("/recommend/recommendArticle")
    public String getRecommendArticle(){
        return recommendArticleService.getRecommendArticle();
    }
}
